package com.x_memteor.base_master.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author: X_Meteor
 * @description: 类描述
 * @version: V_1.0.0
 * @date: 2018/5/14 18:14
 * @company:
 * @email: lx802315@163.com
 */
public class ScorBean implements Parcelable {
    public ScorBean(String name, int icon, int time) {
        this.name = name;
        this.icon = icon;
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    String name;
    int icon;
    int time;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeInt(this.icon);
        dest.writeInt(this.time);
    }

    protected ScorBean(Parcel in) {
        this.name = in.readString();
        this.icon = in.readInt();
        this.time = in.readInt();
    }

    public static final Parcelable.Creator<ScorBean> CREATOR = new Parcelable.Creator<ScorBean>() {
        @Override
        public ScorBean createFromParcel(Parcel source) {
            return new ScorBean(source);
        }

        @Override
        public ScorBean[] newArray(int size) {
            return new ScorBean[size];
        }
    };
}
